#/bin/bash
version=2.0.10
mv ../../cattle-launch/target/cattle-launch.jar ./cattle-launch.jar
mv ../../cattle-ui/dist ./dist
docker build -t cattle-service:${version} .
rm -rf ./cattle-launch.jar
rm -rf ./dist
docker tag cattle-service:${version} registry.cn-hangzhou.aliyuncs.com/lijiahangmax/cattle-service:${version}
docker push registry.cn-hangzhou.aliyuncs.com/lijiahangmax/cattle-service:${version}
